package com.ruoyi.common.annotation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author：coderChen
 * @Package：com.ruoyi.common.annotation
 * @Project：RuoYi-Vue - 副本
 * @Date：2023/11/24 12:43
 * @Filename：NotNumber
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
@Constraint(validatedBy = {NotNumberValidator.class})
public @interface NotNumber{
    String message()

            default "输入内容不允许含有数字";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
